package com.wr.recruit.service.dao.repo;

import com.wr.recruit.service.dao.dbo.CompanyDbo;
import com.wr.recruit.service.dao.dbo.MailDbo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface MailRepo extends JpaRepository<MailDbo, Integer>, JpaSpecificationExecutor<MailDbo> {

    MailDbo findAllById(Integer id);

    MailDbo findAllByMailCode(String mailCode);

    MailDbo findAllByMailCodeAndStep(String mailCode, Integer id);
}
